<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script>
    'use strict';

    let name = "zjz";
    let age = "3";

    let msg = `你好呀，${name} 年龄是： + ${age}`
    console.log(msg);

  </script>
</head>
<body>


<!--
var student = "student";
undefined
console.log(student);
VM142:1 student
undefined
console.log(student.length);
VM158:1 7
undefined
console.log(student.indexOf(5));
VM251:1 -1
undefined
console.log(student.indexOf(e));
VM294:1 Uncaught ReferenceError: e is not defined
    at <anonymous>:1:29
(anonymous) @ VM294:1
console.log(student.indexOf(‘e’));
VM322:1 Uncaught SyntaxError: Invalid or unexpected token
console.log(student.indexOf('e'));
VM400:1 4
undefined
console.log(student.substring(0,2));
VM556:1 st
undefined
console.log(student.substring(0,3));
VM565:1 stu
undefined
var arr = [1,2,3,4,5]
undefined
console.log(arr.length)
VM679:1 5
undefined
console.log(arr)
VM716:1 (5) [1, 2, 3, 4, 5]
undefined
arr[0] = 2;
2
console.log(arr)
VM759:1 (5) [2, 2, 3, 4, 5]
undefined
console.log(arr)
VM766:1 (5) [2, 2, 3, 4, 5]
undefined
arr.push('a','b','c',6)
9
console.log(arr)
VM826:1 (9) [2, 2, 3, 4, 5, "a", "b", "c", 6]
undefined
arr.pop(2);
6
console.log(arr)
VM878:1 (8) [2, 2, 3, 4, 5, "a", "b", "c"]
undefined
arr.pop();
"c"
arr.unshift('a','b',2,3,4);
12
console.log(arr)
VM1013:1 (12) ["a", "b", 2, 3, 4, 2, 2, 3, 4, 5, "a", "b"]
undefined
var arr1 = [1,2,5,3,0,66,9];
undefined
console.log(arr1);
VM1160:1 (7) [1, 2, 5, 3, 0, 66, 9]
undefined
console.log(arr1.sort());
VM1191:1 (7) [0, 1, 2, 3, 5, 66, 9]
undefined
arr1.sort();
(7) [0, 1, 2, 3, 5, 66, 9]
arr1.push(110,220,330);
10
console.log(arr1);
VM1379:1 (10) [0, 1, 2, 3, 5, 66, 9, 110, 220, 330]
undefined
arr1.sort();
(10) [0, 1, 110, 2, 220, 3, 330, 5, 66, 9]
var arr1 =["hello","ascall","bob","world"];
undefined
console.log(arr1);
VM1525:1 (4) ["hello", "ascall", "bob", "world"]
undefined
arr1.sort();
(4) ["ascall", "bob", "hello", "world"]
arr1.reverse();
(4) ["world", "hello", "bob", "ascall"]
arr1.concat([1,2,3,"byte",'V']);
(9) ["world", "hello", "bob", "ascall", 1, 2, 3, "byte", "V"]
arr1.join('-');
"world-hello-bob-ascall"
console.log(arr1);
VM1812:1 (4) ["world", "hello", "bob", "ascall"]
undefined
console.log(arr1.join('%'));
VM1843:1 world%hello%bob%ascall
undefined
var arrtwo = [[1,2,3],[2,4,6],[1,3,5],["1","2","3"]];
undefined
console.log(arrtwo);
VM2046:1 (4) [Array(3), Array(3), Array(3), Array(3)]0: (3) [1, 2, 3]0: 11: 22: 3length: 3__proto__: Array(0)1: (3) [2, 4, 6]0: 21: 42: 6length: 3__proto__: Array(0)2: (3) [1, 3, 5]0: 11: 32: 5length: 3__proto__: Array(0)3: (3) ["1", "2", "3"]0: "1"1: "2"2: "3"length: 3__proto__: Array(0)length: 4__proto__: Array(0)concat: ƒ concat()constructor: ƒ Array()copyWithin: ƒ copyWithin()entries: ƒ entries()every: ƒ every()fill: ƒ fill()filter: ƒ filter()find: ƒ find()findIndex: ƒ findIndex()flat: ƒ flat()flatMap: ƒ flatMap()forEach: ƒ forEach()includes: ƒ includes()indexOf: ƒ indexOf()join: ƒ join()keys: ƒ keys()lastIndexOf: ƒ lastIndexOf()length: 0map: ƒ map()pop: ƒ pop()push: ƒ push()reduce: ƒ reduce()reduceRight: ƒ reduceRight()reverse: ƒ reverse()shift: ƒ shift()slice: ƒ slice()some: ƒ some()sort: ƒ sort()splice: ƒ splice()toLocaleString: ƒ toLocaleString()toString: ƒ toString()unshift: ƒ unshift()values: ƒ values()Symbol(Symbol.iterator): ƒ values()Symbol(Symbol.unscopables): {copyWithin: true, entries: true, fill: true, find: true, findIndex: true, …}__proto__: Object
undefined
console.log(arrtwo[][1]);
VM2067:1 Uncaught SyntaxError: Unexpected token ']'
console.log(arrtwo[0][1]);
VM2077:1 2
undefined
console.log(arrtwo[1][1]);
VM2087:1 4
undefined
console.log(arr);
VM2123:1 (12) ["a", "b", 2, 3, 4, 2, 2, 3, 4, 5, "a", "b"]
undefined
arr.splice(0,2);
(2) ["a", "b"]
console.log(arr);
VM2193:1 (10) [2, 3, 4, 2, 2, 3, 4, 5, "a", "b"]
undefined
arr.slice(0,6);
(6) [2, 3, 4, 2, 2, 3]
console.log(arr);
VM2261:1 (10) [2, 3, 4, 2, 2, 3, 4, 5, "a", "b"]
undefined








-->
</body>
</html>